import { useState, useEffect } from 'react'
import { getData, getData2 } from './Server'

const ApiView = () => {
  const [data, setData] = useState(null)
  useEffect(() => {
    function getInfo(params) {
      const result2 = getData2()
      console.log("result2:", result2);
    }
    getInfo()
  }, [])
  return (<div>
    <h2>Api</h2>

  </div>)
}

export default ApiView